package ru.spbu.mm.diploma.common.facade;

import ru.spbu.mm.diploma.common.entity.RiskGroup;
import ru.spbu.mm.diploma.server.dao.DAOBean;

import java.util.List;

/**
 * Created by IntelliJ IDEA.
 * User: Ksushenka
 * Date: 30.10.11
 * Time: 12:19
 * To change this template use File | Settings | File Templates.
 */
public class RiskGroupFacadeImpl implements IRiskGroupFacade{
    private static RiskGroupFacadeImpl instance = new RiskGroupFacadeImpl();

    public static RiskGroupFacadeImpl getInstance() {
        return instance;
    }
    public List<RiskGroup> getAllRiskGroup() {
         return DAOBean.riskGroupDAO.getAllRiskGroup();  //To change body of implemented methods use File | Settings | File Templates.
    }
    public RiskGroup getGroupByName(String name){
        return DAOBean.riskGroupDAO.getGroupByName(name);
    }
}
